package com.woody.aggregate.app;


import com.woody.sharingdao.keygen.annotation.EnableZkSnowFlak;
import org.dromara.easyes.starter.register.EsMapperScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;

@RefreshScope
@EnableAsync
@EnableFeignClients({"com.woody"})
@SpringBootApplication
@EnableDiscoveryClient
@EnableZkSnowFlak
@ComponentScan(basePackages = {"com.woody"},excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX,pattern ={"com.woody.common.utils.AreaCacheUtil"})})
@MapperScan({"com.woody.aggregate.infrastructure.**.mapper","com.woody.common.**.mapper"})
@EsMapperScan("com.woody.aggregate.infrastructure.**.esmapper")
@EnableConfigurationProperties(value = {
})
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }


}
